package com.zzjson.autoconfigure.second;

import com.zzjson.autoconfigure.Person;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2020 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.autoconfigure</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2020年03月18日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
@SpringBootApplication(scanBasePackages = "com.zzjson.autoconfigure.second")
@Import(PersonAutoConfigurationImportSelector.class)
public class ImportSelectorBootStrap {
	public static void main(String[] args) {
		SpringApplication springApplication = new SpringApplication(ImportSelectorBootStrap.class);
		ConfigurableApplicationContext context = springApplication.run(args);
		Person bean = context.getBean(Person.class);
		System.out.println("look up person: " + bean);

	}
}
